package com.ls.controller.holidaycategory;

import com.ls.controller.holidaycategory.model.GetCategoryModel;
import com.ls.service.IHolidayCategoryService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @ClassName HolidayCategoryController
 * @Description 节假日分类
 *
 * @author pengyu
 * @since 2024-06-28
 */
@Api(value = "节假日分类", tags = "节假日分类")
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/holidayCategory")
public class HolidayCategoryController {
    private final IHolidayCategoryService service;
    /** 查询节假日分类 */
    @GetMapping("getCategory")
    public ResultData getCategory(GetCategoryModel model) {
        return service.getCategory(model);
    }
}
